home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / T / Think-Pascal-7.0.cpt / THINK Pascal Interfaces / SysEqu.p < prev    next >
Encoding:
Text File  |  1991-04-03  |  28.0 KB  |  440 lines  |  [TEXT/PJMM]

  1. {    This file has been processed by The THINK Pascal Source Converter, v1.1.    }
  2.  
  3. {
  4. Created: Sunday, January 6, 1991 at 11:20 PM
  5.     SysEqu.p
  6.     Pascal Interface to the Macintosh Libraries
  7.  
  8.         Copyright Apple Computer, Inc.    1985-90
  9.         All rights reserved
  10.  
  11. }
  12.  
  13.  
  14. {$IFC UNDEFINED UsingIncludes}
  15. {$SETC UsingIncludes := 0}
  16. {$ENDC}
  17.  
  18.  
  19.     UNIT SysEqu;
  20.     INTERFACE
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. CONST
  28. PCDeskPat = $20B;               {[GLOBAL VAR]  desktop pat, top bit only! others are in use}
  29. HiKeyLast = $216;               {[GLOBAL VAR]  Same as KbdVars}
  30. KbdLast = $218;                 {[GLOBAL VAR]  Same as KbdVars+2}
  31. ExpandMem = $2B6;               {[GLOBAL VAR]  pointer to expanded memory block}
  32. SCSIBase = $0C00;               {[GLOBAL VAR]  (long) base address for SCSI chip read}
  33. SCSIDMA = $0C04;                {[GLOBAL VAR]  (long) base address for SCSI DMA}
  34. SCSIHsk = $0C08;                {[GLOBAL VAR]  (long) base address for SCSI handshake}
  35. SCSIGlobals = $0C0C;            {[GLOBAL VAR]  (long) ptr for SCSI mgr locals}
  36. RGBBlack = $0C10;               {[GLOBAL VAR]  (6 bytes) the black field for color}
  37. RGBWhite = $0C16;               {[GLOBAL VAR]  (6 bytes) the white field for color}
  38. RowBits = $0C20;                {[GLOBAL VAR]  (word) screen horizontal pixels}
  39. ColLines = $0C22;               {[GLOBAL VAR]  (word) screen vertical pixels}
  40. ScreenBytes = $0C24;            {[GLOBAL VAR]  (long) total screen bytes}
  41. NMIFlag = $0C2C;                {[GLOBAL VAR]  (byte) flag for NMI debounce}
  42. VidType = $0C2D;                {[GLOBAL VAR]  (byte) video board type ID}
  43. VidMode = $0C2E;                {[GLOBAL VAR]  (byte) video mode (4=4bit color)}
  44. SCSIPoll = $0C2F;               {[GLOBAL VAR]  (byte) poll for device zero only once.}
  45. SEVarBase = $0C30;              {[GLOBAL VAR] }
  46. MMUFlags = $0CB0;               {[GLOBAL VAR]  (byte) cleared to zero (reserved for future use)}
  47. MMUType = $0CB1;                {[GLOBAL VAR]  (byte) kind of MMU present}
  48. MMU32bit = $0CB2;               {[GLOBAL VAR]  (byte) boolean reflecting current machine MMU mode}
  49. MMUFluff = $0CB3;               {[GLOBAL VAR]  (byte) fluff byte forced by reducing MMUMode to MMU32bit.}
  50. MMUTbl = $0CB4;                 {[GLOBAL VAR]  (long) pointer to MMU Mapping table}
  51. MMUTblSize = $0CB8;             {[GLOBAL VAR]  (long) size of the MMU mapping table}
  52. SInfoPtr = $0CBC;               {[GLOBAL VAR]  (long) pointer to Slot manager information}
  53. ASCBase = $0CC0;                {[GLOBAL VAR]  (long) pointer to Sound Chip}
  54. SMGlobals = $0CC4;              { (long) pointer to Sound Manager Globals}
  55. TheGDevice = $0CC8;             {[GLOBAL VAR]  (long) the current graphics device}
  56. CQDGlobals = $0CCC;             { (long) quickDraw global extensions}
  57. ADBBase = $0CF8;                {[GLOBAL VAR]  (long) pointer to Front Desk Buss Variables}
  58. WarmStart = $0CFC;              {[GLOBAL VAR]  (long) flag to indicate it is a warm start}
  59. TimeDBRA = $0D00;               {[GLOBAL VAR]  (word) number of iterations of DBRA per millisecond}
  60. TimeSCCDB = $0D02;              {[GLOBAL VAR]  (word) number of iter's of SCC access & DBRA.}
  61. SlotQDT = $0D04;                {[GLOBAL VAR]  ptr to slot queue table}
  62. SlotPrTbl = $0D08;              {[GLOBAL VAR]  ptr to slot priority table}
  63. SlotVBLQ = $0D0C;               {[GLOBAL VAR]  ptr to slot VBL queue table}
  64. ScrnVBLPtr = $0D10;             {[GLOBAL VAR]  save for ptr to main screen VBL queue}
  65. SlotTICKS = $0D14;              {[GLOBAL VAR]  ptr to slot tickcount table}
  66. TableSeed = $0D20;              {[GLOBAL VAR]  (long) seed value for color table ID's}
  67. SRsrcTblPtr = $0D24;            {[GLOBAL VAR]  (long) pointer to slot resource table.}
  68. JVBLTask = $0D28;               {[GLOBAL VAR]  vector to slot VBL task interrupt handler}
  69. WMgrCPort = $0D2C;              {[GLOBAL VAR]  window manager color port }
  70. VertRRate = $0D30;              {[GLOBAL VAR]  (word) Vertical refresh rate for start manager. }
  71. ChunkyDepth = $0D60;            {[GLOBAL VAR]  depth of the pixels}
  72. CrsrPtr = $0D62;                {[GLOBAL VAR]  pointer to cursor save area}
  73. PortList = $0D66;               {[GLOBAL VAR]  list of grafports}
  74. MickeyBytes = $0D6A;            {[GLOBAL VAR]  long pointer to cursor stuff}
  75. QDErrLM = $0D6E;                {[GLOBAL VAR] QDErr has name conflict w/ type. QuickDraw error code [word]}
  76. VIA2DT = $0D70;                 {[GLOBAL VAR]  32 bytes for VIA2 dispatch table for NuMac}
  77. SInitFlags = $0D90;             {[GLOBAL VAR]  StartInit.a flags [word]}
  78. DTQueue = $0D92;                {[GLOBAL VAR]  (10 bytes) deferred task queue header}
  79. DTQFlags = $0D92;               {[GLOBAL VAR]  flag word for DTQueue}
  80. DTskQHdr = $0D94;               {[GLOBAL VAR]  ptr to head of queue}
  81. DTskQTail = $0D98;              {[GLOBAL VAR]  ptr to tail of queue}
  82. JDTInstall = $0D9C;             {[GLOBAL VAR]  (long) ptr to deferred task install routine}
  83. HiliteRGB = $0DA0;              {[GLOBAL VAR]  6 bytes: rgb of hilite color}
  84. TimeSCSIDB = $0DA6;             {[GLOBAL VAR]  (word) number of iter's of SCSI access & DBRA}
  85. DSCtrAdj = $0DA8;               {[GLOBAL VAR]  (long) Center adjust for DS rect.}
  86. IconTLAddr = $0DAC;             {[GLOBAL VAR]  (long) pointer to where start icons are to be put.}
  87. VideoInfoOK = $0DB0;            {[GLOBAL VAR]  (long) Signals to CritErr that the Video card is ok}
  88. EndSRTPtr = $0DB4;              {[GLOBAL VAR]  (long) Pointer to the end of the Slot Resource Table (Not the SRT buffer).}
  89. SDMJmpTblPtr = $0DB8;           {[GLOBAL VAR]  (long) Pointer to the SDM jump table}
  90. JSwapMMU = $0DBC;               {[GLOBAL VAR]  (long) jump vector to SwapMMU routine}
  91. SdmBusErr = $0DC0;              {[GLOBAL VAR]  (long) Pointer to the SDM busErr handler}
  92. LastTxGDevice = $0DC4;          {[GLOBAL VAR]  (long) copy of TheGDevice set up for fast text measure}
  93. NewCrsrJTbl = $88C;             {[GLOBAL VAR]  location of new crsr jump vectors}
  94. JAllocCrsr = $88C;              {[GLOBAL VAR]  (long) vector to routine that allocates cursor}
  95. JSetCCrsr = $890;               {[GLOBAL VAR]  (long) vector to routine that sets color cursor}
  96. JOpcodeProc = $894;             {[GLOBAL VAR]  (long) vector to process new picture opcodes}
  97. CrsrBase = $898;                {[GLOBAL VAR]  (long) scrnBase for cursor}
  98. CrsrDevice = $89C;              {[GLOBAL VAR]  (long) current cursor device}
  99. SrcDevice = $8A0;               {[GLOBAL VAR]  (LONG) Src device for Stretchbits}
  100. MainDevice = $8A4;              {[GLOBAL VAR]  (long) the main screen device}
  101. DeviceList = $8A8;              {[GLOBAL VAR]  (long) list of display devices}
  102. CrsrRow = $8AC;                 {[GLOBAL VAR]  (word) rowbytes for current cursor screen}
  103. QDColors = $8B0;                {[GLOBAL VAR]  (long) handle to default colors}
  104. HiliteMode = $938;              {[GLOBAL VAR]  used for color highlighting}
  105. BusErrVct = $08;                {[GLOBAL VAR]  bus error vector}
  106. RestProc = $A8C;                {[GLOBAL VAR]  Resume procedure f InitDialogs [pointer]}
  107. ROM85 = $28E;                   {[GLOBAL VAR]  (word) actually high bit - 0 for ROM vers $75 (sic) and later}
  108. ROMMapHndl = $B06;              {[GLOBAL VAR]  (long) handle of ROM resource map}
  109. ScrVRes = $102;                 {[GLOBAL VAR] Pixels per inch vertically (word)
  110.    screen vertical dots/inch [word]}
  111. ScrHRes = $104;                 {[GLOBAL VAR] Pixels per inch horizontally (word)
  112.    screen horizontal dots/inch [word]}
  113. ScrnBase = $824;                {[GLOBAL VAR] Address of main screen buffer
  114.    Screen Base [pointer]}
  115. ScreenRow = $106;               {[GLOBAL VAR]  rowBytes of screen [word]}
  116. MBTicks = $16E;                 {[GLOBAL VAR]  tick count @ last mouse button [long]}
  117. JKybdTask = $21A;               {[GLOBAL VAR]  keyboard VBL task hook [pointer]}
  118. KeyLast = $184;                 {[GLOBAL VAR]  ASCII for last valid keycode [word]}
  119. KeyTime = $186;                 {[GLOBAL VAR]  tickcount when KEYLAST was rec'd [long]}
  120. KeyRepTime = $18A;              {[GLOBAL VAR]  tickcount when key was last repeated [long]}
  121. SPConfig = $1FB;                {[GLOBAL VAR] Use types for serial ports (byte)
  122.    config bits: 4-7 A, 0-3 B (see use type below)}
  123. SPPortA = $1FC;                 {[GLOBAL VAR] Modem port configuration (word)
  124.    SCC port A configuration [word]}
  125. SPPortB = $1FE;                 {[GLOBAL VAR] Printer port configuration (word)
  126.    SCC port B configuration [word]}
  127. SCCRd = $1D8;                   {[GLOBAL VAR] SCC read base address
  128.    SCC base read address [pointer]}
  129. SCCWr = $1DC;                   {[GLOBAL VAR] SCC write base address
  130.    SCC base write address [pointer]}
  131. DoubleTime = $2F0;              {[GLOBAL VAR] Double-click interval in ticks (long)
  132.    double click ticks [long]}
  133. CaretTime = $2F4;               {[GLOBAL VAR] Caret-blink interval in ticks (long)
  134.    caret blink ticks [long]}
  135. KeyThresh = $18E;               {[GLOBAL VAR] Auto-key threshold (word)
  136.    threshold for key repeat [word]}
  137. KeyRepThresh = $190;            {[GLOBAL VAR] Auto-key rate (word)
  138.    key repeat speed [word]}
  139. SdVolume = $260;                {[GLOBAL VAR] Current speaker volume (byte:  low-order three bits only)
  140.    Global volume(sound) control [byte]}
  141. Ticks = $16A;                   {[GLOBAL VAR] Current number of ticks since system startup (long)
  142.    Tick count, time since boot [unsigned long]}
  143. TimeLM = $20C;                  {[GLOBAL VAR] Time has name conflict w/ type. Clock time (extrapolated) [long]}
  144. MonkeyLives = $100;             {[GLOBAL VAR]  monkey lives if >= 0 [word]}
  145. SEvtEnb = $15C;                 {[GLOBAL VAR] 0 if SystemEvent should return FALSE (byte)
  146.    enable SysEvent calls from GNE [byte]}
  147. JournalFlag = $8DE;             {[GLOBAL VAR] Journaling mode (word)
  148.    journaling state [word]}
  149. JournalRef = $8E8;              {[GLOBAL VAR] Reference number of journaling device driver (word)
  150.    Journalling driver's refnum [word]}
  151. BufPtr = $10C;                  {[GLOBAL VAR] Address of end of jump table
  152.    top of application memory [pointer]}
  153. StkLowPt = $110;                {[GLOBAL VAR]  Lowest stack as measured in VBL task [pointer]}
  154. TheZone = $118;                 {[GLOBAL VAR] Address of current heap zone
  155.    current heap zone [pointer]}
  156. ApplLimit = $130;               {[GLOBAL VAR] Application heap limit
  157.    application limit [pointer]}
  158. SysZone = $2A6;                 {[GLOBAL VAR] Address of system heap zone
  159.    system heap zone [pointer]}
  160. ApplZone = $2AA;                {[GLOBAL VAR] Address of application heap zone
  161.    application heap zone [pointer]}
  162. HeapEnd = $114;                 {[GLOBAL VAR] Address of end of application heap zone
  163.    end of heap [pointer]}
  164. HiHeapMark = $BAE;              {[GLOBAL VAR]  (long) highest address used by a zone below sp<01Nov85 JTC>}
  165. MemErr = $220;                  {[GLOBAL VAR]  last memory manager error [word]}
  166. UTableBase = $11C;              {[GLOBAL VAR] Base address of unit table
  167.    unit I/O table [pointer]}
  168. UnitNtryCnt = $1D2;             {[GLOBAL VAR]  count of entries in unit table [word]}
  169. JFetch = $8F4;                  {[GLOBAL VAR] Jump vector for Fetch function
  170.    fetch a byte routine for drivers [pointer]}
  171. JStash = $8F8;                  {[GLOBAL VAR] Jump vector for Stash function
  172.    stash a byte routine for drivers [pointer]}
  173. JIODone = $8FC;                 {[GLOBAL VAR] Jump vector for IODone function
  174.    IODone entry location [pointer]}
  175. DrvQHdr = $308;                 {[GLOBAL VAR] Drive queue header (10 bytes)
  176.    queue header of drives in system [10 bytes]}
  177. BootDrive = $210;               {[GLOBAL VAR]  drive number of boot drive [word]}
  178. EjectNotify = $338;             {[GLOBAL VAR]  eject notify procedure [pointer]}
  179. IAZNotify = $33C;               {[GLOBAL VAR]  world swaps notify procedure [pointer]}
  180. SFSaveDisk = $214;              {[GLOBAL VAR] Negative of volume reference number used by Standard File Package (word)
  181.    last vRefNum seen by standard file [word]}
  182. CurDirStore = $398;             {[GLOBAL VAR]  save dir across calls to Standard File [long]}
  183. OneOne = $A02;                  {[GLOBAL VAR] $00010001
  184.    constant $00010001 [long]}
  185. MinusOne = $A06;                {[GLOBAL VAR] $FFFFFFFF
  186.    constant $FFFFFFFF [long]}
  187. Lo3Bytes = $31A;                {[GLOBAL VAR] $00FFFFFF
  188.    constant $00FFFFFF [long]}
  189. ROMBase = $2AE;                 {[GLOBAL VAR] Base address of ROM
  190.    ROM base address [pointer]}
  191. RAMBase = $2B2;                 {[GLOBAL VAR] Trap dispatch table's base address for routines in RAM
  192.    RAM base address [pointer]}
  193. SysVersion = $15A;              {[GLOBAL VAR]  version # of RAM-based system [word]}
  194. RndSeed = $156;                 {[GLOBAL VAR] Random number seed (long)
  195.    random seed/number [long]}
  196. Scratch20 = $1E4;               {[GLOBAL VAR] 20-byte scratch area
  197.    scratch [20 bytes]}
  198. Scratch8 = $9FA;                {[GLOBAL VAR] 8-byte scratch area
  199.    scratch [8 bytes]}
  200. ScrapSize = $960;               {[GLOBAL VAR] Size in bytes of desk scrap (long)
  201.    scrap length [long]}
  202. ScrapHandle = $964;             {[GLOBAL VAR] Handle to desk scrap in memory
  203.    memory scrap [handle]}
  204. ScrapCount = $968;              {[GLOBAL VAR] Count changed by ZeroScrap (word)
  205.    validation byte [word]}
  206. ScrapState = $96A;              {[GLOBAL VAR] Tells where desk scrap is (word)
  207.    scrap state [word]}
  208. ScrapName = $96C;               {[GLOBAL VAR] Pointer to scrap file name (preceded by length byte)
  209.    pointer to scrap name [pointer]}
  210. IntlSpec = $BA0;                {[GLOBAL VAR]  (long) - ptr to extra Intl data }
  211. SwitcherTPtr = $286;            {[GLOBAL VAR]  Switcher's switch table }
  212. CPUFlag = $12F;                 {[GLOBAL VAR]  $00=68000, $01=68010, $02=68020 (old ROM inits to $00)}
  213. VIA = $1D4;                     {[GLOBAL VAR] VIA base address
  214.    VIA base address [pointer]}
  215. IWM = $1E0;                     {[GLOBAL VAR]  IWM base address [pointer]}
  216. Lvl1DT = $192;                  {[GLOBAL VAR] Level-1 secondary interrupt vector table (32 bytes)
  217.    Interrupt level 1 dispatch table [32 bytes]}
  218. Lvl2DT = $1B2;                  {[GLOBAL VAR] Level-2 secondary interrupt vector table (32 bytes)
  219.    Interrupt level 2 dispatch table [32 bytes]}
  220. ExtStsDT = $2BE;                {[GLOBAL VAR] External/status interrupt vector table (16 bytes)
  221.    SCC ext/sts secondary dispatch table [16 bytes]}
  222. SPValid = $1F8;                 {[GLOBAL VAR] Validity status (byte)
  223.    validation field ($A7) [byte]}
  224. SPATalkA = $1F9;                {[GLOBAL VAR] AppleTalk node ID hint for modem port (byte)
  225.    AppleTalk node number hint for port A}
  226. SPATalkB = $1FA;                {[GLOBAL VAR] AppleTalk node ID hint for printer port (byte)
  227.    AppleTalk node number hint for port B}
  228. SPAlarm = $200;                 {[GLOBAL VAR] Alarm setting (long)
  229.    alarm time [long]}
  230. SPFont = $204;                  {[GLOBAL VAR] Application font number minus 1 (word)
  231.    default application font number minus 1 [word]}
  232. SPKbd = $206;                   {[GLOBAL VAR] Auto-key threshold and rate (byte)
  233.    kbd repeat thresh in 4/60ths [2 4-bit]}
  234. SPPrint = $207;                 {[GLOBAL VAR] Printer connection (byte)
  235.    print stuff [byte]}
  236. SPVolCtl = $208;                {[GLOBAL VAR] Speaker volume setting in parameter RAM (byte)
  237.    volume control [byte]}
  238. SPClikCaret = $209;             {[GLOBAL VAR] Double-click and caret-blink times (byte)
  239.    double click/caret time in 4/60ths[2 4-bit]}
  240. SPMisc1 = $20A;                 {[GLOBAL VAR]  miscellaneous [1 byte]}
  241. SPMisc2 = $20B;                 {[GLOBAL VAR] Mouse scaling, system startup disk, menu blink (byte)
  242.    miscellaneous [1 byte]}
  243. GetParam = $1E4;                {[GLOBAL VAR]  system parameter scratch [20 bytes]}
  244. SysParam = $1F8;                {[GLOBAL VAR] Low-memory copy of parameter RAM (20 bytes)
  245.    system parameter memory [20 bytes]}
  246. CrsrThresh = $8EC;              {[GLOBAL VAR] Mouse-scaling threshold (word) 
  247.    delta threshold for mouse scaling [word]}
  248. JCrsrTask = $8EE;               {[GLOBAL VAR]  address of CrsrVBLTask [long]}
  249. MTemp = $828;                   {[GLOBAL VAR]  Low-level interrupt mouse location [long]}
  250. RawMouse = $82C;                {[GLOBAL VAR]  un-jerked mouse coordinates [long]}
  251. CrsrRect = $83C;                {[GLOBAL VAR]  Cursor hit rectangle [8 bytes]}
  252. TheCrsr = $844;                 {[GLOBAL VAR]  Cursor data, mask & hotspot [68 bytes]}
  253. CrsrAddr = $888;                {[GLOBAL VAR]  Address of data under cursor [long]}
  254. CrsrSave = $88C;                {[GLOBAL VAR]  data under the cursor [64 bytes]}
  255. CrsrVis = $8CC;                 {[GLOBAL VAR]  Cursor visible? [byte]}
  256. CrsrBusy = $8CD;                {[GLOBAL VAR]  Cursor locked out? [byte]}
  257. CrsrNew = $8CE;                 {[GLOBAL VAR]  Cursor changed? [byte]}
  258. CrsrState = $8D0;               {[GLOBAL VAR]  Cursor nesting level [word]}
  259. CrsrObscure = $8D2;             {[GLOBAL VAR]  Cursor obscure semaphore [byte]}
  260. KbdVars = $216;                 {[GLOBAL VAR]  Keyboard manager variables [4 bytes]}
  261. KbdType = $21E;                 {[GLOBAL VAR]  keyboard model number [byte]}
  262. MBState = $172;                 {[GLOBAL VAR]  current mouse button state [byte]}
  263. KeyMapLM = $174;                {[GLOBAL VAR] KeyMap has name conflict w/ type. Bitmap of the keyboard [4 longs]}
  264. KeypadMap = $17C;               {[GLOBAL VAR]  bitmap for numeric pad-18bits [long]}
  265. Key1Trans = $29E;               {[GLOBAL VAR]  keyboard translator procedure [pointer]}
  266. Key2Trans = $2A2;               {[GLOBAL VAR]  numeric keypad translator procedure [pointer]}
  267. JGNEFilter = $29A;              {[GLOBAL VAR]  GetNextEvent filter proc [pointer]}
  268. KeyMVars = $B04;                {[GLOBAL VAR]  (word) for ROM KEYM proc state}
  269. Mouse = $830;                   {[GLOBAL VAR]  processed mouse coordinate [long]}
  270. CrsrPin = $834;                 {[GLOBAL VAR]  cursor pinning rectangle [8 bytes]}
  271. CrsrCouple = $8CF;              {[GLOBAL VAR]  cursor coupled to mouse? [byte]}
  272. CrsrScale = $8D3;               {[GLOBAL VAR]  cursor scaled? [byte]}
  273. MouseMask = $8D6;               {[GLOBAL VAR]  V-H mask for ANDing with mouse [long]}
  274. MouseOffset = $8DA;             {[GLOBAL VAR]  V-H offset for adding after ANDing [long]}
  275. AlarmState = $21F;              {[GLOBAL VAR]  Bit7=parity, Bit6=beeped, Bit0=enable [byte]}
  276. VBLQueue = $160;                {[GLOBAL VAR] Vertical retrace queue header (10 bytes)
  277.    VBL queue header [10 bytes]}
  278. SysEvtMask = $144;              {[GLOBAL VAR] System event mask (word)
  279.    system event mask [word]}
  280. SysEvtBuf = $146;               {[GLOBAL VAR]  system event queue element buffer [pointer]}
  281. EventQueue = $14A;              {[GLOBAL VAR] Event queue header (10 bytes)
  282.    event queue header [10 bytes]}
  283. EvtBufCnt = $154;               {[GLOBAL VAR]  max number of events in SysEvtBuf - 1 [word]}
  284. GZRootHnd = $328;               {[GLOBAL VAR] Handle to relocatable block not to be moved by grow zone function
  285.    root handle for GrowZone [handle]}
  286. GZRootPtr = $32C;               {[GLOBAL VAR]  root pointer for GrowZone [pointer]}
  287. GZMoveHnd = $330;               {[GLOBAL VAR]  moving handle for GrowZone [handle]}
  288. MemTop = $108;                  {[GLOBAL VAR] Address of end of RAM (on Macintosh XL, end of RAM available to applications)
  289.    top of memory [pointer]}
  290. MmInOK = $12E;                  {[GLOBAL VAR]  initial memory mgr checks ok? [byte]}
  291. HpChk = $316;                   {[GLOBAL VAR]  heap check RAM code [pointer]}
  292. MaskBC = $31A;                  {[GLOBAL VAR]  Memory Manager Byte Count Mask [long]}
  293. MaskHandle = $31A;              {[GLOBAL VAR]  Memory Manager Handle Mask [long]}
  294. MaskPtr = $31A;                 {[GLOBAL VAR]  Memory Manager Pointer Mask [long]}
  295. MinStack = $31E;                {[GLOBAL VAR] Minimum space allotment for stack (long)
  296.    min stack size used in InitApplZone [long]}
  297. DefltStack = $322;              {[GLOBAL VAR] Default space allotment for stack (long) 
  298.    default size of stack [long]}
  299. MMDefFlags = $326;              {[GLOBAL VAR]  default zone flags [word]}
  300. DSAlertTab = $2BA;              {[GLOBAL VAR] Pointer to system error alert table in use
  301.    system error alerts [pointer]}
  302. DSAlertRect = $3F8;             {[GLOBAL VAR] Rectangle enclosing system error alert (8 bytes)
  303.    rectangle for disk-switch alert [8 bytes]}
  304. DSDrawProc = $334;              {[GLOBAL VAR]  alternate syserror draw procedure [pointer]}
  305. DSWndUpdate = $15D;             {[GLOBAL VAR]  GNE not to paintBehind DS AlertRect? [byte]}
  306. WWExist = $8F2;                 {[GLOBAL VAR]  window manager initialized? [byte]}
  307. QDExist = $8F3;                 {[GLOBAL VAR]  quickdraw is initialized [byte]}
  308. ResumeProc = $A8C;              {[GLOBAL VAR] Address of resume procedure
  309.    Resume procedure from InitDialogs [pointer]}
  310. DSErrCode = $AF0;               {[GLOBAL VAR] Current system error ID (word)
  311.    last system error alert ID}
  312. IntFlag = $15F;                 {[GLOBAL VAR]  reduce interrupt disable time when bit 7 = 0}
  313. SerialVars = $2D0;              {[GLOBAL VAR]  async driver variables [16 bytes]}
  314. ABusVars = $2D8;                {[GLOBAL VAR] Pointer to AppleTalk variables
  315.   ;Pointer to AppleTalk local variables}
  316. ABusDCE = $2DC;                 {[GLOBAL VAR] ;Pointer to AppleTalk DCE}
  317. PortAUse = $290;                {[GLOBAL VAR]  bit 7: 1 = not in use, 0 = in use}
  318. PortBUse = $291;                {[GLOBAL VAR] Current availability of serial port B (byte)
  319.    port B use, same format as PortAUse}
  320. SCCASts = $2CE;                 {[GLOBAL VAR]  SCC read reg 0 last ext/sts rupt - A [byte]}
  321. SCCBSts = $2CF;                 {[GLOBAL VAR]  SCC read reg 0 last ext/sts rupt - B [byte]}
  322. DskErr = $142;                  {[GLOBAL VAR]  disk routine result code [word]}
  323. PWMBuf2 = $312;                 {[GLOBAL VAR]  PWM buffer 1 (or 2 if sound) [pointer]}
  324. SoundPtr = $262;                {[GLOBAL VAR] Pointer to four-tone record
  325.    4VE sound definition table [pointer]}
  326. SoundBase = $266;               {[GLOBAL VAR] Pointer to free-form synthesizer buffer
  327.    sound bitMap [pointer]}
  328. SoundVBL = $26A;                {[GLOBAL VAR]  vertical retrace control element [16 bytes]}
  329. SoundDCE = $27A;                {[GLOBAL VAR]  sound driver DCE [pointer]}
  330. SoundActive = $27E;             {[GLOBAL VAR]  sound is active? [byte]}
  331. SoundLevel = $27F;              {[GLOBAL VAR] Amplitude in 740-byte buffer (byte)
  332.    current level in buffer [byte]}
  333. CurPitch = $280;                {[GLOBAL VAR] Value of count in square-wave synthesizer buffer (word)
  334.    current pitch value [word]}
  335. DskVerify = $12C;               {[GLOBAL VAR]  used by 3.5 disk driver for read/verify [byte]}
  336. TagData = $2FA;                 {[GLOBAL VAR]  sector tag info for disk drivers [14 bytes]}
  337. BufTgFNum = $2FC;               {[GLOBAL VAR] File tags buffer:  file number (long)
  338.    file number [long]}
  339. BufTgFFlg = $300;               {[GLOBAL VAR] File tags buffer:  flags (word:  bit 1=1 if resource fork) 
  340.    flags [word]}
  341. BufTgFBkNum = $302;             {[GLOBAL VAR] File tags buffer:  logical block number (word)
  342.    logical block number [word]}
  343. BufTgDate = $304;               {[GLOBAL VAR] File tags buffer:  date and time of last modification (long)
  344.    time stamp [word]}
  345. ScrDmpEnb = $2F8;               {[GLOBAL VAR] 0 if GetNextEvent shouldn't process Command-Shift-number combinations (byte)
  346.    screen dump enabled? [byte]}
  347. ScrDmpType = $2F9;              {[GLOBAL VAR]  FF dumps screen, FE dumps front window [byte]}
  348. ScrapVars = $960;               {[GLOBAL VAR]  scrap manager variables [32 bytes]}
  349. ScrapInfo = $960;               {[GLOBAL VAR]  scrap length [long]}
  350. ScrapEnd = $980;                {[GLOBAL VAR]  end of scrap vars}
  351. ScrapTag = $970;                {[GLOBAL VAR]  scrap file name [STRING[15]]}
  352. LaunchFlag = $902;              {[GLOBAL VAR]  from launch or chain [byte]}
  353. SaveSegHandle = $930;           {[GLOBAL VAR]  seg 0 handle [handle]}
  354. CurJTOffset = $934;             {[GLOBAL VAR] Offset to jump table from location pointed to by A5 (word)
  355.    current jump table offset [word]}
  356. CurPageOption = $936;           {[GLOBAL VAR] Sound/screen buffer configuration passed to Chain or Launch (word)
  357.    current page 2 configuration [word]}
  358. LoaderPBlock = $93A;            {[GLOBAL VAR]  param block for ExitToShell [10 bytes]}
  359. CurApRefNum = $900;             {[GLOBAL VAR] Reference number of current application's resource file (word)
  360.    refNum of application's resFile [word]}
  361. CurrentA5 = $904;               {[GLOBAL VAR] Address of boundary between application globals and application parameters
  362.    current value of A5 [pointer]}
  363. CurStackBase = $908;            {[GLOBAL VAR] Address of base of stack; start of application globals
  364.    current stack base [pointer]}
  365. CurApName = $910;               {[GLOBAL VAR] Name of current application (length byte followed by up to 31 characters)
  366.    name of application [STRING[31]]}
  367. LoadTrap = $12D;                {[GLOBAL VAR]  trap before launch? [byte]}
  368. SegHiEnable = $BB2;             {[GLOBAL VAR]  (byte) 0 to disable MoveHHi in LoadSeg}
  369.  
  370. { Window Manager Globals }
  371. WindowList = $9D6;              {[GLOBAL VAR] Pointer to first window in window list; 0 if using events but not windows
  372.   Z-ordered linked list of windows [pointer]}
  373. PaintWhite = $9DC;              {[GLOBAL VAR] Flag for whether to paint window white before update event (word)
  374.   erase newly drawn windows? [word]}
  375. WMgrPort = $9DE;                {[GLOBAL VAR] Pointer to Window Manager port 
  376.   window manager's grafport [pointer]}
  377. GrayRgn = $9EE;                 {[GLOBAL VAR] Handle to region drawn as desktop
  378.   rounded gray desk region [handle]}
  379. CurActivate = $A64;             {[GLOBAL VAR] Pointer to window to receive activate event
  380.   window slated for activate event [pointer]}
  381. CurDeactive = $A68;             {[GLOBAL VAR] Pointer to window to receive deactivate event
  382.   window slated for deactivate event [pointer]}
  383. DragHook = $9F6;                {[GLOBAL VAR] Address of procedure to execute during TrackGoAway, DragWindow, GrowWindow, DragGrayRgn, TrackControl, and DragControl
  384.   user hook during dragging [pointer]}
  385. DeskPattern = $A3C;             {[GLOBAL VAR] Pattern with which desktop is painted (8 bytes)
  386.   desk pattern [8 bytes]}
  387. DeskHook = $A6C;                {[GLOBAL VAR] Address of procedure for painting desktop or responding to clicks on desktop
  388.   hook for painting the desk [pointer]}
  389. GhostWindow = $A84;             {[GLOBAL VAR] Pointer to window never to be considered frontmost
  390.   window hidden from FrontWindow [pointer]}
  391.  
  392. { Text Edit Globals }
  393. TEDoText = $A70;                {[GLOBAL VAR] Address of TextEdit multi-purpose routine
  394.   textEdit doText proc hook [pointer]}
  395. TERecal = $A74;                 {[GLOBAL VAR] Address of routine to recalculate line starts for TextEdit
  396.   textEdit recalText proc hook [pointer]}
  397. TEScrpLength = $AB0;            {[GLOBAL VAR] Size in bytes of TextEdit scrap (long)
  398.   textEdit Scrap Length [word]}
  399. TEScrpHandle = $AB4;            {[GLOBAL VAR] Handle to TextEdit scrap
  400.   textEdit Scrap [handle]}
  401. TEWdBreak = $AF6;               {[GLOBAL VAR] default word break routine [pointer]}
  402. WordRedraw = $BA5;              {[GLOBAL VAR] (byte) - used by TextEdit RecalDraw}
  403. TESysJust = $BAC;               {[GLOBAL VAR] (word) system justification (intl. textEdit)}
  404.  
  405. { Resource Manager Globals }
  406. TopMapHndl = $A50;              {[GLOBAL VAR] Handle to resource map of most recently opened resource file
  407.   topmost map in list [handle]}
  408. SysMapHndl = $A54;              {[GLOBAL VAR] Handle to map of system resource file
  409.   system map [handle]}
  410. SysMap = $A58;                  {[GLOBAL VAR] Reference number of system resource file (word)
  411.   reference number of system map [word]}
  412. CurMap = $A5A;                  {[GLOBAL VAR] Reference number of current resource file (word) 
  413.   reference number of current map [word]}
  414. ResReadOnly = $A5C;             {[GLOBAL VAR] Read only flag [word]}
  415. ResLoad = $A5E;                 {[GLOBAL VAR] Current SetResLoad state (word)
  416.   Auto-load feature [word]}
  417. ResErr = $A60;                  {[GLOBAL VAR] Current value of ResError (word)
  418.   Resource error code [word]}
  419. ResErrProc = $AF2;              {[GLOBAL VAR] Address of resource error procedure
  420.   Resource error procedure [pointer]}
  421. SysResName = $AD8;              {[GLOBAL VAR] Name of system resource file (length byte followed by up to 19 characters)
  422.   Name of system resource file [STRING[19]]}
  423. RomMapInsert = $B9E;            {[GLOBAL VAR] (byte) determines if we should link in map}
  424. TmpResLoad = $B9F;              {[GLOBAL VAR] second byte is temporary ResLoad value.}
  425.  
  426. { Menu Mgr globals }
  427. MBarHeight = $BAA;              {[GLOBAL VAR] height of the menu bar}
  428.  
  429. { CommToolbox Global }
  430. CommToolboxGlobals = $0BB4;     {[GLOBAL VAR] pointer to CommToolbox globals }
  431.  
  432.  
  433.     { UsingSysEqu }
  434.  
  435.  
  436.     IMPLEMENTATION
  437. END.
  438.  
  439.  
  440.